import Http from '../../http';


export const getCateTree = function () {
    return Http.get('/ContentCate/CateTree')
}


export const getList = function() {
    return Http.get('/ContentCate/index') 
}

export const getEdit = function(id:number) {
    return Http.get('/ContentCate/AddOrEdit',{id:id}) 
}
export const postAdd = function(from:any) {
    return Http.post('/ContentCate/Create',from) 
}
export const putEdit = function(from:any) {
    return Http.put('/ContentCate/Edit',from) 
}
export const delOne = function(id:number) {
    return Http.delete('/ContentCate/Delete',{id:id}) 
}